package Chapter2;

public class Test {

    public static void main(String[] args) {
        TermX[] atermx = {new TermX(2, 6), new TermX(-9, 3), new TermX(1, 2), new TermX(-1, 1), new TermX(2, 0)};
        Polynomial apoly = new Polynomial(atermx, true);
        Polynomial bpoly = new Polynomial("3x-x^2+10x^4-3x^5+5x^7+9x^8");
        Polynomial temp1 = new Polynomial("x+2x^2");
        Polynomial temp2 = new Polynomial("x");

        TermX[] btermx = {new TermX(-1, 0), new TermX(1, 1), new TermX(-1, 2), new TermX(10, 4), new TermX(-3, 5), new TermX(5, 7), new TermX(9, 8)};
        PolySinglyList<TermX> a = new PolySinglyList<>(atermx, true);
        PolySinglyList<TermX> b = new PolySinglyList<>(btermx, true);
        System.out.println("" + a.toString());
        System.out.println("" + b.toString());

        System.out.println("equals:"+temp1.equals(temp1));
//

    }


}
